.container {
  height: 100%;
  display: flex;
}

.root {
  position: relative;
  background-color: white;
  // border: 2px solid var(--vd-color-secondary-200);
  height: 100%;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.setting {
  flex-shrink: 0;
  width: 180px;
  transition: width 0.2s ease-in-out;

  .settingBody {
    padding: 16px 0 var(--vd-spacing-xs) var(--vd-spacing-sm);
  }

  .settingHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: var(--vd-spacing-sm);
  }

  .settingItem {
    margin-bottom: var(--vd-spacing-xs);
    background-color: rgba($color: #000000, $alpha: 0.02);
    transition: all 0.2s ease-in-out;
    padding: var(--vd-spacing-xs) 8px;
    border-radius: 4px;
    color: var(--vd-color-gray-800);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    &:hover {
      background-color: rgba($color: #000000, $alpha: 0.1);
      transform: scale(1.02);
      font-weight: bold;
    }

    &:global(.danger) {
      color: var(--vd-color-danger-400);
    }
  }
}

.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .robot {
    width: 200px;
    height: auto;
    border-radius: 10px;
    filter: grayscale(100%) brightness(1.5);
  }

  .desc {
    margin-top: 1.2em;
    font-size: 16px;
  }
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  padding: var(--vd-spacing-xs) var(--vd-spacing-sm);
  flex-shrink: 0;
  gap: var(--vd-spacing-sm);
  align-items: center;
  border-bottom: 1px solid var(--vd-color-gray-300);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(15px);

  .headerBody {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .fold {
    font-size: 18px;
    color: var(--vd-color-gray-800);
    cursor: pointer;
    flex-shrink: 0;
  }

  .title {
    font-size: 16px;
    position: relative;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .system {
    margin-top: 2px;
    font-size: 12px;
    color: var(--vd-color-font-regular);
    line-height: 1.4;
    position: relative;
    min-width: 10em;
    white-space: pre-wrap;
  }

  .editSystem {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 0.579);
    backdrop-filter: blur(10px) opacity(80%);
    padding: 0px 4px;
    font-size: 12px;
    border-radius: 3px;
  }

  .system:hover .editSystem {
    display: block;
  }

  .options {
    font-size: 18px;
    padding: 3px;
    border-radius: 4px;
    &:hover {
      background-color: var(--vd-color-gray-200);
    }
  }
}

.sessions {
  flex: 1;
  position: relative;
}

.session {
  display: none;
  position: absolute;
  background-color: #f4f6fb;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  flex-direction: column;
  overflow: hidden;

  &:global(.active) {
    display: flex;
  }
}

.historyWrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .history {
    padding-top: 65px;
  }
}

.prompt {
  flex-shrink: 0;
  background-color: white;
  padding: var(--vd-spacing-xs) var(--vd-spacing-sm);
  line-height: 1;
  border-top: 1px solid var(--vd-color-gray-300);
}

.drawer {
  :global {
    .ant-drawer-body {
      padding: 0;
    }
  }
}
